<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2021.3.19
 * Time: 15:58
 */

/**
 * ReflectionClass 构造函数
 * 1、当类存在的时候，返回一个 异常
 *
 */
class User {

}


try {
    $reflector = new ReflectionClass(User::class);
} catch (ReflectionException $e) {
    echo $e->getMessage();
}
Reflection::export($reflector);